package models

type Plugin struct {
	Name          string                ` yaml:"name"`
	Description   string                ` yaml:"description"`
	DisplayName   string                ` yaml:"displayName"`
	Type          string                ` yaml:"type"`
	Parameters    map[string]*Parameter ` yaml:"parameter"`
	BeforeCommand []interface{}         ` yaml:"beforeCommand"`
	AfterCommand  []interface{}         ` yaml:"afterCommand"`
}

type Parameter struct {
	Type        string      ` yaml:"type" json:"type,omitempty"`
	Rule        interface{} ` yaml:"rule" json:"rule,omitempty"`
	Description string      ` yaml:"description" json:"description,omitempty"`
	DisplayName string      ` yaml:"displayName" json:"displayName,omitempty"`
	Required    bool        ` yaml:"required" json:"required,omitempty"`
}
